#define  _CRT_SECURE_NO_WARNINGS 1

#include"Sort.h"

void CreatData(int num)
{
	srand((size_t)time(NULL));
	FILE* pf = fopen("data.txt", "w");
	if (pf == NULL)
	{
		perror("fopen fail");
		exit(1);
	}
	for (int i = 0; i < num; i++)
	{
		int data = rand() + i;
		fprintf(pf, "%d\n", data);
	}

	fclose(pf);
}